Skip to content

Rename to Protocolith and add the stdlib-only core - #413

Merged
NeoZorK merged 11 commits into
mainfrom
protocolith/p1-p2-rename
Nov 16, 2026
Merged

NeoZorK merged 11 commits into
mainfrom
protocolith/p1-p2-rename

Conversation

@NeoZorK

@NeoZorK NeoZorK commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Renames the project to Protocolith and adds a small stdlib-only core.

  • Rename: brand, package (protocolith), CLI (protocolith, plith), evidence ids (PLITH- prefix) with a verifiable old-to-new map (docs/MIGRATION_ID_MAP.json). Files pinned by hash were left untouched.
  • Core (protocolith.core): canonical JSON (PCJ-1), hash-chained ledger, rules R1-R11, freeze / record / deviation / verify / issue, summary, show, capture, schema, init, atlas, MCP server, conformance vectors, --expect-head.
  • Hardening: property, stateful, crash-at-every-byte, stress and performance tests; 100 percent line and branch coverage of the core.
  • Docs: new README, documentation set, quickstart example, spec (docs/spec/CORE_SPEC.md).
  • CI: Python 3.11-3.15 on Linux, macOS and Windows; a core coverage job.

Notes for review

The large file count comes from renaming about 8,000 evidence cards and their SVGs (ids changed); review the commits one by one rather than the aggregate diff.
No runtime dependencies for the core. Version stays 0.5.0 here; the 0.6.0 bump follows in a separate PR.

Removes the peer-comparison card (registry sequence 8073), its protocol charter,
artifacts, two runner scripts, the atlas link and the Pages workflow entries at
the owner's decision. The registry now holds 8072 cards; statistics and static
views were regenerated. AGENTS.md records the ban. The removed files remain in
git history; history was not rewritten.

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
Package, module and command are now protocolith (short alias plith). Evidence ids use
the PLITH- prefix; every migrated card keeps its old id in legacy_evidence_id and
docs/MIGRATION_ID_MAP.json records old and new ids with file hashes. Files whose
hashes are quoted by other records (frozen artifacts, claim matrices) and the
changelog and provenance history keep the old name. The migration tool is
scripts/migrations/rename_to_protocolith.py.

The core now uses only the standard library: numpy moved to the runners extra and
the PDF libraries to the campaign extra; commands that need them say what to install.
Python 3.11 to 3.15 are supported and the CI matrix covers them on Linux, macOS and
Windows. A test fixture no longer depends on the developer's git signing setup.

Adds the core specification draft (docs/spec/CORE_SPEC.md), new logo and demo assets,
and rewrites the related-work page for the new name.

Verified locally: protocolith validate-all and 249 tests pass on Python 3.11, 3.13
and 3.15; ruff is clean.

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
Local runs stay to quick host checks (unit tests, ruff); the matrix is covered by .github/workflows/tests.yml.

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
… and issue

protocolith.core implements docs/spec/CORE_SPEC.md with the standard library only:
PCJ-1 canonical JSON, a hash-chained append-only ledger with an exclusive lock and crash
repair, rules R1 to R11 with stable error codes, freeze/record/deviation/verify/issue
operations, card issuing through the existing validator and renderer, and a minimal MCP
server over stdio. New CLI commands: freeze, record, deviation, verify-ledger, issue, log,
head, repair, mcp.

Conformance vectors are generated by scripts/build_core_vectors.py into spec/vectors/ and
checked against the implementation. The core tests reach 100% line and branch coverage of
protocolith.core; mypy --strict and ruff are clean. The spec now lists limits, issuing rules
and error codes.

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
…d, card-validation fixes

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
…art example

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
…ence ids unique per record

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
…or a card registry, with optional UI languages

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
… for examples

Signed-off-by: Rost S. <63606118+NeoZorK@users.noreply.github.com>
@NeoZorK
NeoZorK merged commit b165a6d into main Nov 16, 2026
33 checks passed
@NeoZorK
NeoZorK deleted the protocolith/p1-p2-rename branch November 16, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant